﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Web;

namespace WebUI.Models.Tables
{
    [Table("Guestbook")]
    public partial class Guestbook : BaseModel
    {
        /// <summary>
        /// 标题
        /// </summary>
        [Column, DisplayName("标题")]
        public string Title { get; set; } // text(2147483647)
        /// <summary>
        /// 姓名
        /// </summary>
        [Column, DisplayName("姓名")]
        public string Name { get; set; } // text(2147483647)
        /// <summary>
        /// 留言类型
        /// </summary>
        [Column, DisplayName("留言类型")]
        public ContactType ContactType { get; set; } // integer
        /// <summary>
        /// 联系方式
        /// </summary>
        [Column, DisplayName("联系方式")]
        public string Contact { get; set; } // text(2147483647)
        /// <summary>
        /// 留言内容
        /// </summary>
        [Column, DisplayName("留言内容")]
        public string Content { get; set; } // text(2147483647)
        /// <summary>
        /// 显示标志
        /// </summary>
        [Column, DisplayName("显示标志")]
        public bool ShowFlag { get; set; } // integer
        /// <summary>
        /// 留言IP
        /// </summary>
        [Column, DisplayName("留言IP")]
        public string IP { get; set; } // text(2147483647)
    }

    public enum ContactType
    {
        咨询
    }
}